import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import right_login from '@/page/right_login'
import homepage from '@/page/homepage'
import ranking from '@/page/ranking'
import supervision from '@/page/supervision/supervision'
import supervisionDetail from '@/page/supervision/supervisionDetail'
import principal from '@/page/principal'
import province from '@/page/province'
import report from '@/page/report'
import dynamic from '@/page/dynamic'
import reports from '@/page/reports'
import information from '@/page/information'
import disease from '@/page/disease'
import cases from  '@/page/case'
import progessDetail from '@/page/progessDetail'
import indicators from '@/page/indicators'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/',
      component: HelloWorld
    },
    {
      path: '/homepage',
      component: homepage
    },
    {
      path: '/ranking',
      component: ranking
    },
    {
      path: '/progessDetail',
      component: progessDetail
    },
    {
      path: '/report',
      component: report
    },
    {
      path: '/right_login',
      component: right_login
    },
    {
      path: '/information',
      component: information
    },
    {
      path: '/disease',
      component: disease
    },
    {
      path: '/principal',
      component: principal
    },
    {
      path: '/province',
      component: province
    },
    {
      path: '/cases',
      component: cases
    },
    {
      path: '/reports',
      component: reports
    },
    {
      path: '/dynamic',
      component: dynamic
    },
    {
      path: '/supervision',
      component: supervision
    },
    {
      name: 'supervisionDetail',
      path: '/supervision/:id',
      component: supervisionDetail
    },
    {
      name: 'indicators',
      path: '/indicators',
      component: indicators
    }
  ]
})
